#include "../superheader.h"
#include "messageSwitching.h"

int main()
{
  QList<double> listIntensities;
  QList<double> listMaxPacketSize;

  listIntensities << 0.0001 << 0.001 << 0.01 << 0.03 << 0.05
                  << 0.06   << 0.07  << 0.08 << 0.09 << 0.1;
  listMaxPacketSize << 0.01 << 0.1 << 0.5 << 2.0;

  foreach (double maxPacketSize, listMaxPacketSize) {
    cout << "\t\tТП = " << maxPacketSize << endl;
    cout << "\t\t--\n";
    networkSettings.timePacketSwitching = maxPacketSize;
    foreach (double intensity, listIntensities) {
      cout << "\n\t\tИнтенсивность = " << intensity << endl;
      inputData.intensity = intensity;
      networkSettings.init(inputData);
      messageSwitchingDelay();

      cout << endl;
    }
  }

  return 0;
}
